<template>
  <div id="app">
    <img src="./assets/logo.png">
    <HelloWorld/>
    <Header :my-title="title" :name="name" :age="age"/>
    <hr/>
    <Content :change="myChange"/>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld'
import Header from "./components/Header"
import Content from "./components/Content";

export default {
  name: 'App',
  data() {
    return {
      title: '这里是父组件传给子组件的属性值',
      name: '王贺',
      age: 24
    }
  },
  components: {
    Content,
    HelloWorld,
    Header
  },
  methods: {
    myChange: function (mm) {
      this.name = mm;
    }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
